package com.kingyun.gpsinspection.purificationservice.facade.service.iam.manage;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.manage.MaterialsStorage;

/**
 * Created by yangsy on 2016/12/8.
 */
public interface MaterialsStorageService {
    int deleteByPrimaryKey(String materialsStorageId);

    int insert(MaterialsStorage record);

    int insertSelective(MaterialsStorage record);

    MaterialsStorage selectByPrimaryKey(String materialsStorageId);

    int updateByPrimaryKeySelective(MaterialsStorage record);

    int updateByPrimaryKey(MaterialsStorage record);

    JSONObject list(MaterialsStorage materialsStorage);

    /**
     * 新增操作
     * @param record 业务数据
     * @param uploadFiles 更新的文件
     * @param deletedFiles 删除的文件
     * @return
     */
    int insert(MaterialsStorage record, String uploadFiles, String deletedFiles);

}
